package com.xiaokaceng.openci.pojo;

import org.openkoala.opencis.redmine.RedmineClient;

import com.xiaokaceng.openci.domain.RedmineConfiguration;
import com.xiaokaceng.openci.domain.ToolConfiguration;

public class RedmineConfigurationPojo extends ToolConfigurationPojo {

	@Override
	public void createCISClient(ToolConfiguration toolConfiguration) {
		if (toolConfiguration instanceof RedmineConfiguration) {
			RedmineClient redmineClient = new RedmineClient(toolConfiguration.getServiceUrl(), toolConfiguration.getUsername(), toolConfiguration.getPassword());
			cisClient = redmineClient;
			isInstance = true;
		}
	}

}
